﻿/**
 * loss
 * 客户流失表
 * @author User(EMAIL) 2018-12-19 11:32:18
 * @version 1.0 2018-12-19 11:32:18

loss(客户流失表)
----------------------------------
lid(流失编号)           PKInteger
cname(客户姓名)         String
mgname(客户经理姓名)    String
lasttime(上次订单时间)  Date
losstime(确定流失时间)  Date
lstatus(状态)           String
lmeasure(暂缓流失措施)  String
lreason(确定流失原因)   String
cid(客户编号)           FKString


SQLMAP:
<resultMap id="resMap_loss"
	class="loss.loss">
	<result property="lid" column="LID" />
	<result property="cname" column="CNAME" />
	<result property="mgname" column="MGNAME" />
	<result property="lasttime" column="LASTTIME" />
	<result property="losstime" column="LOSSTIME" />
	<result property="lstatus" column="LSTATUS" />
	<result property="lmeasure" column="LMEASURE" />
	<result property="lreason" column="LREASON" />
	<result property="cid" column="CID" />
</resultMap>
<select id="sel_loss" resultMap="resMap_loss"><![CDATA[
  select t.* from loss t
]]></select>

*/
package entity;

/** 
 * 客户流失表
 */
public class loss
{
  /**
   * 流失编号
   */
  protected int lid;
  /**
   * 客户姓名
   */
  protected String cname;
  /**
   * 客户经理姓名
   */
  protected String mgname;
  /**
   * 上次订单时间
   */
  protected String lasttime;
  /**
   * 确定流失时间
   */
  protected String losstime;
  /**
   * 状态
   */
  protected String lstatus;
  /**
   * 暂缓流失措施
   */
  protected String lmeasure;
  /**
   * 确定流失原因
   */
  protected String lreason;
  /**
   * 客户编号
   */
  protected int cid;

  public loss()
  {
  }  

  public loss(int lid, String cname, String mgname, String lasttime, String losstime, String lstatus, String lmeasure,
		String lreason, int cid) {
	super();
	this.lid = lid;
	this.cname = cname;
	this.mgname = mgname;
	this.lasttime = lasttime;
	this.losstime = losstime;
	this.lstatus = lstatus;
	this.lmeasure = lmeasure;
	this.lreason = lreason;
	this.cid = cid;
  }

/**
   * 获取流失编号
   */
  public int getLid()
  {
    return lid;
  }
  /**
   * 设置流失编号
   */
  public void setLid(int value)
  {
    this.lid = value;
  }
  /**
   * 获取客户姓名
   */
  public String getCname()
  {
    return cname;
  }
  /**
   * 设置客户姓名
   */
  public void setCname(String value)
  {
    this.cname = value;
  }
  /**
   * 获取客户经理姓名
   */
  public String getMgname()
  {
    return mgname;
  }
  /**
   * 设置客户经理姓名
   */
  public void setMgname(String value)
  {
    this.mgname = value;
  }
  /**
   * 获取上次订单时间
   */
  public String getLasttime()
  {
    return lasttime;
  }
  /**
   * 设置上次订单时间
   */
  public void setLasttime(String value)
  {
    this.lasttime = value;
  }
  /**
   * 获取确定流失时间
   */
  public String getLosstime()
  {
    return losstime;
  }
  /**
   * 设置确定流失时间
   */
  public void setLosstime(String value)
  {
    this.losstime = value;
  }
  /**
   * 获取状态
   */
  public String getLstatus()
  {
    return lstatus;
  }
  /**
   * 设置状态
   */
  public void setLstatus(String value)
  {
    this.lstatus = value;
  }
  /**
   * 获取暂缓流失措施
   */
  public String getLmeasure()
  {
    return lmeasure;
  }
  /**
   * 设置暂缓流失措施
   */
  public void setLmeasure(String value)
  {
    this.lmeasure = value;
  }
  /**
   * 获取确定流失原因
   */
  public String getLreason()
  {
    return lreason;
  }
  /**
   * 设置确定流失原因
   */
  public void setLreason(String value)
  {
    this.lreason = value;
  }
  /**
   * 获取客户编号
   */
  public int getCid()
  {
    return cid;
  }
  /**
   * 设置客户编号
   */
  public void setCid(int value)
  {
    this.cid = value;
  }

@Override
   public String toString() {
	 return "loss [lid=" + lid + ", cname=" + cname + ", mgname=" + mgname + ", lasttime=" + lasttime + ", losstime="
			+ losstime + ", lstatus=" + lstatus + ", lmeasure=" + lmeasure + ", lreason=" + lreason + ", cid=" + cid
			+ "]";
   }
  
}

